package com.lhkj.ct.meta.admin.model.vo;

import com.lhkj.ct.base.enums.GlobalStatus;
import com.lhkj.ct.base.model.IBaseTree;
import com.lhkj.ct.base.model.Tree;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *     机构树级结构
 * </p>
 */
@Setter
@Getter
public class OrganTreeVo implements Tree<OrganTreeVo>, IBaseTree<String>, Serializable {

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "父级")
    private String parentId;

    @ApiModelProperty(value = "机构编码")
    private String organCode;

    @ApiModelProperty(value = "机构名称")
    private String organName;

    @ApiModelProperty(value = "状态")
    private GlobalStatus status;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "机构名称")
    private List<OrganTreeVo> children;
}
